
class LhdVO {
  /**
   * 框架名称
  */
  public gameName: string = "LhdVO";
  public static VO: LhdVO = null;
  public static getVo(): LhdVO {
    if (!LhdVO.VO) {
      LhdVO.VO = new LhdVO();
    }
    return LhdVO.VO;
  }

  public dwServerRule: number;          //房间规则
  public wChairCount: number;           //椅子数目
  public wServerType: number;           //房间类型
  public wTableCount: number;           //桌子数目
  //玩家私有变量
  //金币
  public lUserScore: number = 0;
  //状态
  public status: number;
  //桌子  
  public wTableId_up: number;
  public wTableId: number;
  //椅子
  public wChairId: number;

  public playerNumber: number = 0;//跟我同桌人数
  public userInfo = {}; //广场里所有玩家信息所有玩家信息
  //玩家私有变量

  //游戏公共变量
  public gameNum = 0;//连续多少局未下注，3局后警告五局后踢出
  public game_state: number;
  public cbTimeLeave: number = 0;//剩余时间
  public wBankerUser: number = null;//庄家ID
  public lBankerScore: number = 0;//金币

  public betUser: number = null;//下注玩家
  public betAdds: number = null;//下注区域
  public betNum: number = null;//下注数量

  public gameNumbering: string = "";           //牌局编号
  public betNumAdds_1: number = 0;//1号区域总下注数量
  public betNumAdds_3: number = 0;//1号区域总下注数量
  public betNumAdds_5: number = 0;//1号区域总下注数量


  public myBetNumAdds_1: number = 0;//我1号区域总下注数量
  public myBetNumAdds_3: number = 0;//我1号区域总下注数量
  public myBetNumAdds_5: number = 0;//我1号区域总下注数量
  public betNumAdds_my: number = 0;//我总


  public ludan: Array<any> = [];//路单
  public zhupanlu: Array<any> = [];//珠盘路
  public dalu: Array<Array<Object>> = [[]];




  public result: number = 0;//谁赢了  1 龙 2 虎 3 和


  public poker_xian = [];//闲家扑克
  public poker_zhuang = [];//庄家扑克
  public score_arr = [];//结算时所有区域得分
  public score_my = 0;//结算时我的得分；

  //游戏公共变量
  public structUserList: Array<Object> = null;
  //重置玩家信息
  public initUserInof() {
    this.lUserScore = null;
    this.status = null;
    this.wTableId = null;
    this.wChairId = null;
    this.playerNumber = 0;
  }
  //重置牌局信息
  public initGameInfo() {
    this.game_state = null;
    this.cbTimeLeave = 0;//剩余时间
    this.wBankerUser = null;//庄家ID
    this.lBankerScore = 0;//金币

    this.betUser = null;//下注玩家
    this.betAdds = null;//下注区域
    this.betNum = null;//下注数量

    this.betNumAdds_1 = 0;//1号区域总下注数量
    this.betNumAdds_3 = 0;//1号区域总下注数量
    this.betNumAdds_5 = 0;//1号区域总下注数量

    this.myBetNumAdds_1 = 0;//我1号区域总下注数量
    this.myBetNumAdds_3 = 0;//我1号区域总下注数量
    this.myBetNumAdds_5 = 0;//我1号区域总下注数量

    this.poker_xian = [];//闲家扑克
    this.poker_zhuang = [];//庄家扑克
    this.score_arr = [];//结算时所有区域得分
    this.score_my = 0;
  }
}
